const fs = require('fs');

const models = {}

// 批量require
fs.readdir(__dirname, (err, files) => {

  files.splice(files.indexOf('index.js'), 1);
  files.forEach(file => {
    const name = file.replace(/\.js/g, '');

    models[name] = require('./'+ file);
  });
});


module.exports = models;